var Cesium = require('cesium/Cesium');
require('./css/main.css');
require('cesium/Widgets/widgets.css');
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzYThjMTI0OC0xOTE3LTRmNGEtYjZkNS02OWNmODNkYTA5MDEiLCJpZCI6NDQ4NjQsImlhdCI6MTYxNDUyMDg2OX0.JCjqt607bGjZFbxY4yAefUjZ1AGX0uj_M2jP5XsuAII';
var viewer = new Cesium.Viewer("cesiumContainer", {
    terrainProvider: Cesium.createWorldTerrain()
});

const buildingTileset = viewer.scene.primitives.add(Cesium.createOsmBuildings());

viewer.camera.flyTo({
    destination: Cesium.Cartesian3.fromDegrees(-122.4175, 37.655, 400),
    orientation: {
        heading: Cesium.Math.toRadians(0, 0),
        pitch: Cesium.Math.toRadians(-15.0)
    }
})

